// 群表
// 字段说明
// id, 群主id, 群名称  群封面链接  群创建时间,公告
const mongoose = require('mongoose'); //导入
const user = require('./user');
const Schema = mongoose.Schema(); //创建集合字段
let friendGroupSchema = new Schema({
    friendGroupId: {
        type: Schema.Schema.Types.ObjectId,
        ref: user
    },
    friendGroupName: String,
    creationTime: Date,
    affiche: String,
    imgUrl: String,


})

let friendGroup = mongoose.model('friendGroup', friendGroupSchema)

module.exports = friendGroup; //到出群表